package cn.micro.keep.accounts.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
/**
 * <p>
 * 邀请加入组别记录表
 * </p>
 *
 * @author 柘阳科技
 * @since 2023-11-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AccountOdsShareGroupRequestJoinRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 邀请记录主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 分享组ID
     */
    private Long shareGroupId;

    /**
     * 发起邀请的用户ID
     */
    private Long senderId;

    /**
     * 接收邀请的用户ID
     */
    private Long accepterId;

    /**
     * 邀请描述
     */
    private String requestDesc;

    /**
     * 邀请状态 0:未处理 1:已同意 2:已拒绝
     */
    private Integer status;

    /**
     * 邀请回复描述
     */
    private String requestReplyDesc;

    /**
     * 创建时间
     */
    @TableField(fill= FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill= FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    public static final String ID = "id";

    public static final String SHARE_GROUP_ID = "share_group_id";

    public static final String SENDER_ID = "sender_id";

    public static final String ACCEPTER_ID = "accepter_id";

    public static final String REQUEST_DESC = "request_desc";

    public static final String STATUS = "status";

    public static final String REQUEST_REPLY_DESC = "request_reply_desc";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

}
